package com.message.api.user.vo;

import com.base.context.IUser;
import com.message.api.user.entity.AcUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @Author mzl.
 */
@Data
@ApiModel(value = "用户")
public class AcUserVo extends AcUser implements IUser {

    @ApiModelProperty(value = "所属角色组Id")
    private String grouptype;

    @ApiModelProperty(value = "操作人角色Id")
    private String usergroup;

    @ApiModelProperty("角色名称")
    private String acgroupName;

    @ApiModelProperty("用户类型名称")
    private String usertypeName;

    @ApiModelProperty("部门名称")
    private String organizationName;

    public AcUserVo() {
    }

    public AcUserVo(AcUser acUser, String grouptype, String usergroup) {
        BeanUtils.copyProperties(acUser, this);
        this.grouptype = grouptype;
        this.usergroup = usergroup;
    }

}
